# user=int(input('请输入一个数字'))
# i=1
# numbers=[]
# lucky=[]
# while i <= user:
#     numbers.append(i)
#     i+=1
# for number in numbers:
#     if number%6==0:
#         lucky.append(number)
# print(lucky)
#
# numbers=[number for number in range(1,user+1)]
#
# lucky=[number for number in numbers if number%6==0]

# nums=[numbers for numbers in range(1,101) if numbers%5==0]

# import random
#
# random.seed(5)
#
# list1 = []
# for i in range(30):
#     num = random.randint(1, 100)
#     list1.append(num)
# list2 = [j for j in list1 if j > 30]
# print(list1)
# print(list2)

# list1=['abb','abc','1xyz','ab','h']
# list1.sort()
# print(list1)

# list1=['A','B','C','D']
# list2=[1,2,3,4]
#
# list3=[i+str(j) for i in list1 for j in list2]
# print(list3)

# import random
# flower=['♥','♠','♣','♦']
# nums=['2','3','4','5','6','7','8','9','10','J','Q','K','A']
# list1=[i+j for i in flower for j in nums]+['大王','小王']
#
# random.randint(1,54)
# list2=[]
# for i in range(len(list1)):
#     list2.append(list1[list1.pop(random.randint(0,len(list1)-1))])
# print(list2)

# import random
# flower=['♥','♠','♣','♦']
# nums=['2','3','4','5','6','7','8','9','10','J','Q','K','A']
# list1=[i+j for i in flower for j in nums]+['大王','小王']
# list1=list(set(list1))
# print(list1)
def func(d):
    d['key'] = 'new value'
    return d

original_dict = {'key': 'old value'}
new_dict = func(original_dict)
print(original_dict)
